﻿using System;

public static class StringExtensions
{
   public static string StripIfMore(this string s, int Length)
   {
      if (s.Length > Length)
      {
         return s.Substring(0, Length);
      }
      else
      {
         return s;
      }
   }
   public static string TitleCase(this string s)
   {
      System.Globalization.TextInfo TI = new System.Globalization.CultureInfo("en-US", false).TextInfo;
      return TI.ToTitleCase(s);
   }
}